<?php
@session_start();
require_once 'dataAccess.php';

$da = new dataAccess();

$id = intval($_POST['title_id']);
$txt_title = $_POST['txt_title'];
$user = $_POST['user'];

$da->edit_title($id, $txt_title, $user);
$_SESSION['add'] = 1;

?>